package com.lam.common.components.data.model;

public class QueryEntry {
	
	private String sql;
	
	private boolean useCache;
	private String redisKey;
	/** 缓存时长，秒 */
	private long expire;
	
	public String getSql() {
		return sql;
	}
	public QueryEntry setSql(String sql) {
		this.sql = sql;
		return this;
	}

	public String getRedisKey() {
		return redisKey;
	}

	public QueryEntry setRedisKey(String redisKey) {
		this.redisKey = redisKey;
		return this;
	}
	
	public boolean isUseCache() {
		return useCache;
	}
	
	public QueryEntry setUseCache(boolean useCache) {
		this.useCache = useCache;
		return this;
	}
	
	public long getExpire() {
		return expire;
	}
	
	public QueryEntry setExpire(long expire) {
		this.expire = expire;
		return this;
	}


}
